import { fetch } from '../util/http.js';

/**
 * 获取用户列表信息
*/
export function getUserData(data){
  return fetch({
    url:'user/lotUser/search',
    method:'post',
    data:data
  });
}

/**
 * 获取用户中奖详情
*/
export function getUserDetails(data){
  return fetch({
    url:'user/activity/'+data.id,
    method:'get'
  });
}

/**
 * 个人抽奖查询
*/
export function getPersonalLuckDraw(data){
  return fetch({
    url:'user/lastUpdatedAddress/'+data.id,
    method:'get'
  });
}

/**
 * 获取用户抽奖或中奖数据
*/
export function getLuckDrasData(data){
  return fetch({
    url:'user/search/lottery',
    method:'post',
    data:data
  });
}

/**
 * 添加用户
*/
export function addUser(data){
  return fetch({
    url:'user/addLotUser',
    method:'post',
    data:data
  });
}